#!/usr/bin/env node

const fs=require('fs'),
      lnkName=process.argv[2],
      log=console.log;


if(lnkName==undefined){
  log('命令行参数不正确');
}

try{
  log(`${lnkName} -> ${fs.readlinkSync(lnkName)}`);

}catch(e){
  log(e.maessage);
}


//打印出来的格式 lnk -> src
//linkName->返回值
